﻿using Coldairarrow.Entity.PB;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.PB
{
    public partial interface IPB_UnloadBillBusiness
    {
        Task<PageResult<PB_UnloadBill>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<PB_UnloadBill> GetTheDataAsync(string id);
        Task AddDataAsync(PB_UnloadBill data);
        Task UpdateDataAsync(PB_UnloadBill data);
        Task DeleteDataAsync(List<string> ids);
        ///卸车选择车辆 
        Task<List<PB_UnloadBillPlateNO>> Get_UnloadBillPlateNO();
        /// <summary>
        /// 通过
        /// </summary>
        /// <param name="Bild">派车单id</param>
        /// <returns></returns>
        Task<List<PB_UnloadingDetails>> Get_UnloadingDetails(string Bild);
        Task  PB_UnloadBillInfoAdd(PB_UnloadBillInfo data);
        /// <summary>
        /// pc查看卸车单
        /// </summary>
        /// <param name="UnloadId"></param>
        /// <returns></returns>
        Task<PB_UnloadBillMain> pB_UnloadBillMain(string UnloadId);
    }
    /// <summary>
    /// 卸车选择车辆
    /// </summary>
    public class PB_UnloadBillPlateNO {
        /// <summary>
        /// 派车单ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string PlateNO { get; set; }

    }
    /// <summary>
    /// 获取卸车明细
    /// </summary>
    public class PB_UnloadingDetails {
       /// <summary>
       /// 获取卸车明细项目id
       /// </summary>
        public string ProjectId { get; set; }
        /// <summary>
        /// 楼号id
        /// </summary>
        public string BuildingId { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }
        /// <summary>
        /// 楼号
        /// </summary>
        public string Buildingnumber { get; set; }
        /// <summary>
        /// 卸车数量
        /// </summary>
        public double? UnloadingNums { get; set; }
        /// <summary>
        /// 物料id
        /// </summary>
        public string MaterialId { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string Name { get; set; }
        //物料编码
        public string Code { get; set; }
    }
    /// <summary>
    /// 回货卸车保存
    /// </summary>
    public class PB_UnloadBillInfo: PB_UnloadBill
    {
        /// <summary>
        /// 回货卸车明细
        /// </summary>
        public List<PB_UnloadBillDetail> SubData { get; set; }
    }
    public class PB_UnloadBillDetailDto : PB_UnloadBillDetail {
        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }
        /// <summary>
        /// 楼号
        /// </summary>

        public string Buildingnumber { get; set; }
        /// <summary>
        /// 工件名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
    }
    public class PB_UnloadBillMain : PB_UnloadBill {
        public List<PB_UnloadBillDetailDto> Detail { get; set; }
    }
}